package com.eorchis.module.classnotice.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.classnotice.domain.ClassNotice;
import com.eorchis.module.trainingclass.domain.TrainingClass;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;


/**
 * Title: ClassNoticeValidCommond<br>
 * Description: 入学通知ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Max
 * @createDate 2014-12-12
 * @version $Revision$
 */
public class ClassNoticeValidCommond implements ICommond {
	
	private ClassNotice classNotice;
	private TrainingClass trainingClass;//培训班ID
	
	public ClassNoticeValidCommond(){
		classNotice = new ClassNotice();
		trainingClass = new TrainingClass();
		classNotice.setTrainingClass(trainingClass);
	}
	
	public ClassNoticeValidCommond(ClassNotice classNotice){
		this.classNotice = classNotice;
		trainingClass = classNotice.getTrainingClass();
	}

	public Serializable getEntityID() {
		return classNotice.getNoticeId();
	}

	public IBaseEntity toEntity() {
		return classNotice;
	}

	/**
	 * 获取ID
	 */	
	public String getNoticeId() {
		return classNotice.getNoticeId();
	}
	/**
	 * 设置ID
	 */		
	public void setNoticeId(String noticeId) {
		classNotice.setNoticeId(noticeId);
	}
	/**
	 * 获取ID
	 */	
	public String getAttachmentId() {
		return classNotice.getAttachmentId();
	}
	/**
	 * 设置ID
	 */		
	public void setAttachmentId(String attachmentId) {
		classNotice.setAttachmentId(attachmentId);
	}
	/**
	 * 获取培训班ID
	 */	
	public String getClassId() {
		return trainingClass.getClassId();
	}
	/**
	 * 设置培训班ID
	 */		
	public void setClassId(String classId) {
		trainingClass.setClassId(classId);
	}
	
}
